package com.yanqu.road.server.manager.tomb.entity;

import com.yanqu.road.dao.dbV2.BaseEntity;
import com.yanqu.road.dao.dbV2.IField;
import com.yanqu.road.dao.dbV2.ITable;
import com.yanqu.road.dao.dbV2.serializer.DInt;
import com.yanqu.road.dao.dbV2.serializer.DLong;
import com.yanqu.road.dao.dbV2.serializer.DObject;
import com.yanqu.road.dao.dbV2.serializer.DString;

import java.util.HashSet;
import java.util.Set;

@ITable(tableName = "t_c_activity_tomb_user_position")

public class DbTombUserPosition extends BaseEntity {
    public static DbTombUserPosition newInstance() {
        return new DbTombUserPosition();
    }

    @IField(isPrimaryKey = true, isAutoIncrement = true, fieldName = "id", serializer = DLong.class)
    public long id;
    @IField(isPrimaryKey = true, fieldName = "activity_id", serializer = DInt.class)
    public int activityId;

    @IField(fieldName = "user_id", comment = "用户ID", serializer = DLong.class)
    public long userId;

    @IField(fieldName = "floor", comment = "", serializer = DInt.class)
    public int floor;

    @IField(fieldName = "groupId", comment = "分组", serializer = DInt.class)
    public int groupId;

    @IField(fieldName = "x", serializer = DInt.class)
    public int x;
    @IField(fieldName = "y", serializer = DInt.class)
    public int y;



    @IField(fieldName = "event_id", comment = "事件id", serializer = DInt.class)
    public int eventId;

    @IField(fieldName = "relation_id_list", comment = "关联的id列表", serializer = DObject.class)
    public Set<Integer> relationIdList = new HashSet<>();

    @IField(fieldName = "relation_id", comment = "关联的id", serializer = DLong.class)
    public long relationId;




    public Set<Integer> getRelationIdList() {
        return relationIdList;
    }


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getFloor() {
        return floor;
    }

    public void setFloor(int floor) {
        this.floor = floor;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }

    public void setRelationIdList(Set<Integer> relationIdList) {
        this.relationIdList = relationIdList;
    }

    public long getRelationId() {
        return relationId;
    }

    public void setRelationId(long relationId) {
        this.relationId = relationId;
    }


    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
